﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Forging2.Common
{
    public class Workpiece
    {
        public string GID { get; set; }
        public string FORGING_NO { get; set; }
        public string PRODU_CODE { get; set; }
        public string PRODU_NAME { get; set; }
        public string PRODU_SIZE { get; set; }
        public decimal ORDER_WEIGHT { get; set; }
        public decimal PROCESS_WEIGHT { get; set; }
        public string PRODU_HEATNO { get; set; }
        public string PORCESS_NAME { get; set; }
        public string PORCESS_CODE { get; set; }
        public int PORCESS_COMBINE { get; set; }
        public int PRODU_STATE { get; set; }
        public string DISPATCH_CODE { get; set; }
        public string ORDER_GID { get; set; }
        public string WORK_CENTER_GID { get; set; }
        public string WORK_CELL_GID { get; set; }
        public string ROUTE_GID { get; set; } 

        public DateTime CREATE_DATE { get; set; } = DateTime.Now;
        
        
       /*
        public string   DISPATCH_CODE { get; set; }
        public string PRODU_CODE { get; set; }
        public string   PRODU_NAME { get; set; }
        public string LOT_CODE { get; set; }
        public string MRL_CODE { get; set; }
        public string ORDER_GID { get; set; }
        public int ORDER_TYPE { get; set; }
        public string WORK_ORDER_CODE { get; set; }
        public string MAKING_ORDER_CODE { get; set; }
        public int DIS_CODE_STATE { get; set; }
        public int PRO_TYPE { get; set; }
        public string WORK_CENTER_GID { get; set; }
        public string WORK_CELL_GID { get; set; }
        /// <summary>
        /// 冻结位置
        /// </summary>
        public string FREEZE_LOCATION { get; set; }
        public DateTime FREEZE_DATE { get; set; }
        /// <summary>
        /// 冻结原因描述
        /// </summary>
        public string REASON { get; set; }
        public string UNFREEZE_LOCATION { get; set; }
        public string FREEZE_ID { get; set; }
        public string UNFREEZE_ID { get; set; }
        /// <summary>
        /// 处理类型
        /// </summary>
        public string DISPOSE_TYPE { get; set; }
        public string DISPOSE_CONTENT { get; set; }
        public int ORDER_STATE { get; set; }
        public int OPERATE_STATE { get; set; }
        /// <summary>
        /// 工单状态
        /// </summary>
        public int WORK_ORDER_STATE { get; set; }
        public int PLAN_QTY { get; set; }
        public string ROUTE_CODE { get; set; }
        public int ROUTE_VERSION { get; set; }
        public string ROUTE_GID { get; set; }
        public DateTime PLANNED_START_TIME { get; set; }
        public DateTime PLANNED_FINISH_TIME { get; set; }
        public DateTime UNFREEZE_DATE { get; set; }
       
        public string ISCOMPLETE { get; set; }
        public DateTime COMPLETE_DATE { get; set; }
        public string PUBLISH_STATE { get; set; }
        public int IS_DOWN { get; set; }
        public DateTime PUBLISH_DATE { get; set; }
        public DateTime ACTUAL_BEGIN_DATE { get; set; }
        public DateTime ACTUAL_END_DATE { get; set; }
        /// <summary>
        /// UDA1 是否在炉
        /// </summary>
        public string InFurnace { get; set; }
        /// <summary>
        /// UDA3 生产任务单号
        /// </summary>
        public string ForgingNo { get; set; }
        /// <summary>
        /// 辗环状态：0-未辗环，1-辗环中，2-已辗环
        /// </summary>
        public int STATE { get; set; }







        /*
        NOW_DAQ
        NOW_DAQ_ID
        NOW_DAQ_DATE 
        PREDICT_DATE
        NEXT_DAQ
        NEXT_DAQ_DATE
        
        KPART_FLAG
        WORK_DATE
        OP_PID
        OP_GID
        OP_CODE
        OP_FLAG
        PLAN_OP_SEQ
        ACTUAL_OP_SEQ
        EFFECTIVE_QTY
        UNEFFECTIVE_QTY
        DISCARD_QTY
        TRANS_QTY
        WORK_ORDER_FLAG
        CHK_ID
        CHK_DATE
        LABOUR_GROUP_GID
        FEATURE_LOT_CODE
        REMARK
        QUALITY_STATE
        IS_LAST
        SEQ
        IS_FREEZE
        REQ_NUM
        IS_CLOSE
        IS_SPLIT
        PARENT_GID
        SOURCE
        SOURCE_CODE
        CREATE_DATE
        CREATE_ID
        MODIFY_ID
        MODIFY_DATE
        IS_ACTIVE
        IS_DELETE
        SITE
        */
    }
}
